﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="StorageDetail.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.OrderManage.StorageDetail"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" language="javascript">
        function insertGoodsInfo(goodsInfo) {
            var varGoodsInfo = goodsInfo.split('|');
            document.all.ctl00_ContentPlaceHolder1_companyId.value = varGoodsInfo[0];
            document.all.ctl00_ContentPlaceHolder1_txtCompany.value = varGoodsInfo[1];
        }    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="StorageTotal.aspx">产品入库汇总</a></li>
            <li class="active"><a href="storageDetail.aspx">产品入库明细</a></li>
            <li ><a href="OrderDistributeNosendCheck.aspx">未配送</a></li>
            <li><a href="OrderDistributeSendCheck.aspx">已配送</a></li>
            <li><a href="OrderUndistributeDetailCheck.aspx">拒绝配送</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblProdctNameTag" runat="server" Text="生产名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txb_ProdctNameTag"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblOutlookcTag" runat="server" Text="规格型号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txb_OutlookcTag"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblMedicineModelNameTag" runat="server" Text=" 采购医疗机构："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txb_HospitalTag"></asp:TextBox>
                            </td>
                            
                            <td rowspan="3">
                                <hz:HzButton ID="HzButton1" runat="server" Text="查询" CssClass="searchbtn" OnClick="HzButton1_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblMaterial" runat="server" Text="材质："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblCompany_SCTag" runat="server" Text="生产企业："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txb_Company_SCTag"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblOrderName" runat="server" Text="采购单名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txb_OrderName"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="Label2" runat="server" Text="入库时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPurchaseTimeBegin" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtPurchaseTimeEnd" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                        Width="62px">
                                    </asp:TextBox>
                            </td>
<%--                            <td align="right">
                                <asp:Label ID="Label1" runat="server" Text="项目查询："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddl_Projectname">
                                </asp:DropDownList>
                            </td>--%>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">
        <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
            OnItemCommand="rptHospital_ItemCommand" EmptyDataText="暂无符合条件的数据！" OnRowDataBound="gvwProduceCatalog_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                    <HeaderStyle Width="28px" />
                </asp:TemplateField>
                <asp:BoundField DataField="batchRecordID" HeaderText="批号" />
                <asp:BoundField DataField="dis_distributeCount" HeaderText="入库数量" />
<%--                <asp:BoundField DataField="price" HeaderText="采购价" DataFormatString="{0:N4}" />
                <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:N4}"></asp:BoundField>--%>
                <asp:TemplateField HeaderText="采购价">
                <ItemTemplate>
                    <asp:Label ID="lblPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("Price")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="采购限价">
                <ItemTemplate>
                    <asp:Label ID="lblProcurePrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("ProcurePrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
                <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" />
                <%--<asp:BoundField DataField="distributeAmount" HeaderText="总金额" />--%>
                <asp:TemplateField HeaderText="总金额">
                <ItemTemplate>
                    <asp:Label ID="lbldistributeAmount" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("distributeAmount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
                <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
                <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
                 <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
                <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
                <%--<asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
                <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />--%>
                <asp:BoundField DataField="companyname_sc" HeaderText="生产企业" />
                <asp:BoundField DataField="orderName" HeaderText="采购单名称" />
                <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" />
                <asp:BoundField DataField="wareHousetime" HeaderText="入库时间" DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="orderDetailstate" HeaderText="订单状态" Visible="false" />
                <asp:BoundField DataField="executetime" HeaderText="执行时间" DataFormatString="{0:yyyy-MM-dd}"
                    Visible="false" />
                <asp:BoundField DataField="planPerson" HeaderText="制定人" />
                <asp:BoundField DataField="planTime" HeaderText="制定时间" DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="starttime" HeaderText="起始时间" DataFormatString="{0:yyyy-MM-dd}"
                    Visible="false" />
                <asp:BoundField DataField="planEndTime" HeaderText="结束时间" DataFormatString="{0:yyyy-MM-dd}"
                    Visible="false" />
            </Columns>
        </asp:GridView>
        <div class="page">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
        <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
        <div class="listip">
            <ul>
                <li>提示:<span> </span></li>
            </ul>
        </div>
        <%-- <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice", "ctl00$ContentPlaceHolder1$ddlCity"<%=GetDefaultAreaString() %>  );
    </script>--%>
    </div>
</asp:Content>
